<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="asignTrademark.title"/></title>
    <meta name="heading" content="<fmt:message key='formAsignTrademark.heading'/>"/>
    <meta name="menu" content="RoleAdminCut"/>
</head>
<div id="help">
    <h2>
        <a href="<c:url value='helpAsignTrademarkToDressMaker.html?decorate=false'/>"
           title="Help material purchase"
           onclick="Modalbox.show(this.href, {title: this.title, width: 600}); return false;">
               <fmt:message key="help"/>
        </a>
    </h2>
</div>
<fieldset>
<legend><fmt:message key="cutProcessForm.selectDatas"/></legend>
<table class="tableGrey" id="SelectedDatas">
    <thead>
        <tr>
            <th class="hidden"/>
            <th><fmt:message key="pantDetail.storageCut.pantDesign.datas"/></th>
            <th><fmt:message key="pantDetail.quantityRealClothes"/></th>
            
            <th class="hidden"/>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td> <s:property value="pantDetail.storageCut.pantDesign.datas" /> </td>
            <td> <s:property value="pantDetail.quantityRealClothes" /> </td>
            
        </tr>
    </tbody>
</table>
</fieldset>
<s:form id="pantDetailTrademarkForm" action="pantDetailTrademarkForm" method="post" validate="true">
    <fieldset>
     <legend><fmt:message key="asignTrademarkToDressmarker.selectDatas"/></legend>

        <s:hidden name="pantDetail.id" value="%{pantDetail.id}"/>
        <s:hidden name="pantDetail.quantityRealClothes" value="%{pantDetail.quantityRealClothes}"/>
        <s:hidden name="currentCuantity" value="%{currentCuantity}"/>

        <table>
            <tr>
                <td>
                <s:select label="%{getText('asignTrademarkToDressmarker.selectTrademark')}" name="optTradeMark"
                          list="tradeMarkList" listKey="id" listValue="name" required="true"
                          headerKey="-1" headerValue="--- Please Select ---" />
                </td>
                <td>
                    <s:textfield id="quantity" key="quantity" required="false" size="9"/>
                </td>
            </tr>
            <tr>
                <td>
                    <li class="buttonBar bottom">
                        <s:submit cssClass="button" method="savePantDetailTrademark" key="button.save" theme="simple"/>
                        <s:submit cssClass="button" method="cancelPantDetailTrademark" key="button.cancel" theme="simple"/>
                    </li>
                </td>
            </tr>
        </table>
    </fieldset>
</s:form>

<fieldset>
     <legend><fmt:message key="addDressMakerForm.itemsAsigned"/></legend>
<display:table name="pantDetailTradeMarkList" class="table" requestURI="" id="pantDetailTradeMarkList" export="false"
               pagesize="25">

    <display:column sortable="false" titleKey="pantDetailTradeMark.deletePantDetail" style="width: 5%"
                    autolink="true" media="html" href="deleteTrademarkToDressMaker.html" paramId="id" paramProperty="id">
            <img src="<c:url value="/images/trash.png" />" alt="Edit" />
    </display:column>

    <display:column property="quantity" sortable="true" titleKey="pantDetail.quantity"/>
    <display:column property="tradeMark.name" sortable="true" titleKey="tradeMark.name"/>
    <display:column property="pantDetail.storageCut.pantDesign.datas" sortable="true" titleKey="pantDetail.storageCut.pantDesign.datas"/>
    
    <display:setProperty name="export.excel.filename" value="CutProcess List.xls"/>
    <display:setProperty name="export.csv.filename" value="CutProcess List.csv"/>
    <display:setProperty name="export.pdf.filename" value="CutProcess List.pdf"/>

</display:table>
</fieldset>